package com.zysstudy.controller;

import com.zysstudy.config.BookComponent;
import com.zysstudy.config.BookProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BookController {
    @Autowired
//    BookProperties bookProperties;
    BookComponent bookComponent;
    @RequestMapping(value = "/book",method = RequestMethod.GET)
    public String Index()
    {
//        bookProperties.setName("临时设置下下");
        return "test"+bookComponent.getName();
    }
}
